﻿<controls:ChildWindow
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="TheOliver.DigitalSignage.Client.Windows.SettingsWindow"
                      Width="507"
                      Height="307"
                      Title="Settings" mc:Ignorable="d"
    xmlns:inputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input">
  <Grid x:Name="LayoutRoot"
        Margin="2">
  	<Grid.ColumnDefinitions>
  		<ColumnDefinition/>
  	</Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <Button x:Name="CancelButton"
            Content="Cancel"
            Click="CancelButton_Click"
            Height="23"
            Margin="0,12,0,0"
            Grid.Row="1" HorizontalAlignment="Right" Width="75" />
    <Button x:Name="OKButton"
            Content="OK"
            Click="OKButton_Click"
            Height="23"
            Margin="0,12,79,0"
            Grid.Row="1" HorizontalAlignment="Right" Width="75" />
  	<Grid x:Name="_settingsGrid" Grid.ColumnSpan="1" Grid.RowSpan="1">
  		<Grid.RowDefinitions>
  			<RowDefinition Height="38*"/>
  			<RowDefinition Height="28*"/>
                <RowDefinition
                    Height="30*" />
                <RowDefinition
                    Height="31*" />
                <RowDefinition
                    Height="32*" />
                <RowDefinition
                    Height="74*" />
            </Grid.RowDefinitions>
  		<Grid.ColumnDefinitions>
  			<ColumnDefinition Width="233"/>
  			<ColumnDefinition
                    Width="121*" />
  			<ColumnDefinition Width="131"/>
  		</Grid.ColumnDefinitions>
            <inputToolkit:TimePicker
                Height="22"
                Margin="6,0,0,10"
                Name="_simulateTime"
                VerticalAlignment="Bottom"
                Grid.Column="2" />
            <controls:DatePicker
                Height="23"
                Margin="0,0,5,10"
                Name="_simulateDate"
                VerticalAlignment="Bottom"
                Grid.Column="1" />
            <CheckBox
                Content="Simulate Date and Time"
                Height="22"
                Margin="8,0,6,10"
                Name="_simulateDateTime"
                VerticalAlignment="Bottom"
                Checked="_simulateDateTime_Checked"
                Unchecked="_simulateDateTime_Unchecked"
                Width="219" />
            <dataInput:Label
                Grid.Row="1"
                Margin="8,0,0,0"
                Name="_displayDurationLabel"
                Width="225"
                Content="Default Display Duration in Seconds"
                HorizontalContentAlignment="Left" />
            <inputToolkit:NumericUpDown
                Grid.Row="1"
                Name="_displayDuration"
                Maximum="20"
                Grid.Column="1" />
            <dataInput:Label
                Content="Agenda Item Default DisplayTime in ms"
                HorizontalContentAlignment="Left"
                Margin="8,0,0,2"
                Name="_agendaItemDefaultDisplayTimeInMsLabel"
                Width="225"
                Grid.Row="2" />
            <inputToolkit:NumericUpDown
                Maximum="1000"
                Name="_agendaItemDefaultDisplayTimeInMs"
                Grid.Column="1"
                Grid.Row="2"
                Height="30" />
            <dataInput:Label
                Content="Agenda Wait Time in ms"
                HorizontalContentAlignment="Left"
                Margin="8,0,0,3"
                Name="_agendaWaitTimeInMsLabel"
                Width="225"
                Grid.Row="3" />
            <inputToolkit:NumericUpDown
                Grid.Column="1"
                Height="30"
                Margin="0,0,0,1"
                Maximum="30000"
                Name="_agendaWaitTimeInMs"
                Grid.Row="3" />
            <inputToolkit:NumericUpDown
                Height="30"
                Margin="0,0,0,2"
                Maximum="100"
                Name="_minAgendaItemGap"
                Grid.Column="1"
                Grid.Row="4" />
            <dataInput:Label
                Content="Agenda Item Gap"
                HorizontalContentAlignment="Left"
                Margin="8,0,0,4"
                Name="_agendaItemGapLabel"
                Width="225"
                Grid.Row="4" />
            <dataInput:Label
                Content="Data Update Interval"
                HorizontalContentAlignment="Left"
                Margin="8,0,0,46"
                Name="_dataUpdateIntervalLabel"
                Width="225"
                Grid.Row="5" />
            <inputToolkit:NumericUpDown
                Height="30"
                Margin="0,0,0,44"
                Maximum="100"
                Name="_dataUpdateInterval"
                Grid.Column="1"
                Grid.Row="5" />
        </Grid>
  </Grid>
</controls:ChildWindow>